-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove max gas #188
Remove max gas #188
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic diff looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -299,13 +300,17 @@ func TestInstantiate(t *testing.T) { | |||
require.NoError(t, err) | |||
|
|||
gasBefore := ctx.GasMeter().GasConsumed() | |||
fmt.Printf("limit: %d\n", ctx.GasMeter().Limit()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: t.Logf
should be preferred to fmt.Printf
for test debug output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 A test is failing in CI. On my box I got:
keeper_test.go:314:
Error Trace: keeper_test.go:314
Error: Not equal:
expected: 0x11542
actual : 0x28f5c28efc6754a
Test: TestInstantiate
Yeah, sorry, I added the commit message, but forgot to add it to the description This works for everything but one place, and I don't know why it fails there (thus the Printf). I will try to look later, unless someone else wants to take a look |
Closing in favor of #193 |
* Add some linting to gaia - closes CosmWasm#187 Signed-off-by: Marko Baricevic <[email protected]> * fail tests * tests pass * address PR comments * some more strictness
Closes #170
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added relevant
godoc
comments.Added a relevant changelog entry to the
Unreleased
section inCHANGELOG.md
Re-reviewed
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)